package com.cjack.frenchexcel.response.easyeuro;

import net.sf.json.JSON;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import net.sf.json.JSONSerializer;

public class GetAlipayQrCodeResponse {
    private String version;//Default 2.0。
    private String charset;//Fixed :UTF-8
    private String status;//0 – success other – failure this field indicates communication status of the request. Only result_code 0 indicates request is successful.
    private String message;//message
    /* Only return when ‘status’ is 0 */
    private String result_code;// Request status 0 – success other - failure
    private String mch_id;//Unique merchant id allocated by EasyEuro
    private String nonce_str;//Random string, less than 32 characters
    private String sign;
    /* Only returns when both ‘status’ and ‘result_code’ are 0 */
    private String code_url;//QR code in text format, merchant systems can encode the value to be QR code image
    private String code_img_url;//URL of QR code image

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getCharset() {
        return charset;
    }

    public void setCharset(String charset) {
        this.charset = charset;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    public String getMch_id() {
        return mch_id;
    }

    public void setMch_id(String mch_id) {
        this.mch_id = mch_id;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getCode_url() {
        return code_url;
    }

    public void setCode_url(String code_url) {
        this.code_url = code_url;
    }

    public String getCode_img_url() {
        return code_img_url;
    }

    public void setCode_img_url(String code_img_url) {
        this.code_img_url = code_img_url;
    }

    public String toString(){
        return JSONObject.fromObject( this).toString();
    }
}
